(search_buffer): Fix typo in previous change.
authorRichard M. Stallman <rms@gnu.org>
Wed, 7 Apr 1993 20:08:55 +0000 (20:08 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 7 Apr 1993 20:08:55 +0000 (20:08 +0000)
src/search.c

index fdf19fe656e288e3a8de82b2e39dd3cea1f5c201..86a8977c5ab42c3c48aced0f65e1f4e87224fc94 100644 (file)
@@ -670,11 +670,12 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
        }
       while (n < 0)
        {
+         int val;
          BLOCK_INPUT;
-         int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
-                                pos - BEGV, lim - pos, &search_regs,
-                                /* Don't allow match past current point */
-                                pos - BEGV);
+         val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
+                            pos - BEGV, lim - pos, &search_regs,
+                            /* Don't allow match past current point */
+                            pos - BEGV);
          UNBLOCK_INPUT;
          if (val == -2)
            matcher_overflow ();
@@ -700,10 +701,11 @@ search_buffer (string, pos, lim, n, RE, trt, inverse_trt)
        }
       while (n > 0)
        {
+         int val;
          BLOCK_INPUT;
-         int val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
-                                pos - BEGV, lim - pos, &search_regs,
-                                lim - BEGV);
+         val = re_search_2 (&searchbuf, (char *) p1, s1, (char *) p2, s2,
+                            pos - BEGV, lim - pos, &search_regs,
+                            lim - BEGV);
          UNBLOCK_INPUT;
          if (val == -2)
            matcher_overflow ();